package cn.school.pay.service;

import cn.school.pay.vo.PayOrderInfoVO;
import com.alipay.api.AlipayApiException;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.io.UnsupportedEncodingException;
import java.util.Map;

public interface PayOrderInfoService {
    /**
     * 分页查询支付订单列表
     * @param vo
     * @return
     */
    IPage<PayOrderInfoVO> findPayOrderPageList(PayOrderInfoVO vo);

    /**
     * 添加支付订单信息
     * @param vo
     * @return
     */
    int addPayOrderInfo(PayOrderInfoVO vo);

    /**
     * 根据订单号修改订单时间状态
     * @param vo
     * @return
     */
    int updatePayOrderInfoByOrderNo(PayOrderInfoVO vo);

    /**
     * 根据ID查询支付订单
     * @param id
     * @return
     */
    int deletePayOrderInfoById(Long id);

    /**
     * 创建订单
     * @param vo
     * @return
     */
    Map<String,Object> createPayOrder(PayOrderInfoVO vo) throws AlipayApiException, UnsupportedEncodingException;

    String aliNotifyCallbackPayOffline(Map<String, String> param);
}
